package Error;

/*
 *@Student 张策
 */
public class text3 {
    public static void main(String[] args) {
        int num=10;
        if(num>0){
           throw  new AgeExce("年龄错误(自定义异常)");
        }
    }
}
class AgeExce extends RuntimeException{
    public AgeExce(String message) {
        super(message);
    }
}
